package cn.suimg.neo4j.timer;

import cn.suimg.neo4j.service.MusicService;
import com.github.pagehelper.PageHelper;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

import javax.annotation.Resource;

@Configuration
public class AutoImportSingerTimer {

    @Resource
    private MusicService musicService;

//    @Scheduled(fixedDelay = 60000)
    public void importSinger(){
        PageHelper.startPage(1,10);
        musicService.getUnprocessedSingerIdList().forEach(musicService::addSingerFullData);
    }

}
